package com.tms.app.tms.adapter;

import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tms.app.tms.R;
import com.tms.app.tms.bean.Fee;
import com.tms.app.tms.bean.GoodsInfo;

/**
 * Created by happy on 2017/8/26.
 */

public class GoodsInfoAdapter extends BaseQuickAdapter<GoodsInfo, BaseViewHolder> {
    public GoodsInfoAdapter() {
        super(R.layout.item_goods_layout);
    }



    @Override
    protected void convert(BaseViewHolder helper, final GoodsInfo item) {

       helper.addOnClickListener(R.id.edit_1);
       helper.addOnClickListener(R.id.edit_2);
       helper.addOnClickListener(R.id.edit_3);
       helper.addOnClickListener(R.id.edit_4);
       helper.addOnClickListener(R.id.edit_5);
       helper.addOnClickListener(R.id.text_del);
       helper.addOnClickListener(R.id.text_edit);

         helper.setText(R.id.edit_1,item.getBillNo()+"");
         helper.setText(R.id.edit_2,item.getGoodName()+"");
        helper.setText(R.id.edit_3,item.getPiece()+"");
        helper.setText(R.id.edit_4,item.getWeight()+"");
        helper.setText(R.id.edit_5,item.getVolume()+"");
    }
}
